package models;

import java.util.*;
import play.modules.morphia.Model;
import play.data.validation.*;
import com.google.code.morphia.annotations.Entity;

@Entity(value="SensorData", noClassnameStored=true)
@play.modules.morphia.Model.NoAutoTimestamp
public class Sensor extends Model {

	@Min(1)
	@Required(message = "sensorID is required! Use 'sensorID' as parameter-name.")
	public int sensorID;
	
	@Min(1)
	@Required(message = "Time is required! Use 'time' as parameter-name.") 
	public long time;
	
	@Required(message = "Sensor readings are required! Use 'sensorReadings' as parameter-name.")
	public ArrayList<Integer> sensorReadings;
	
	public Sensor() {
        sensorReadings = new ArrayList<Integer>();
    }
}

